package com.ict.web.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ict.common.annotation.Excel;
import com.ict.web.controller.file.domain.YzqFile;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class PreliminaryInformationVo {
    /** 初验备案id */
    @ApiModelProperty(value = "初验备案id")
    @TableId(value = "first_check_id",type = IdType.ASSIGN_ID)
    private Long firstCheckId;

    /** 初验时间 */
    @ApiModelProperty(value = "初验时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "初验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date initialAcceptanceTime;

    /** 机构名称 */
    @ApiModelProperty(value = "机构名称")
    @Excel(name = "机构名称")
    private String organizationName;

    /** 初验通过凭证 */
    @ApiModelProperty(value = "初验通过凭证")
    @Excel(name = "初验通过凭证")
    private String certificate;

    /** 初验通过凭证文件 */
    @ApiModelProperty(value = "初验通过凭证文件")
    @Excel(name = "初验通过凭证文件")
    private YzqFile certificateFile;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
